package cn.akwangl.design.pattern.behavioral.templatemethod.v3;

/**
 * 含钩子方法的具体子类
 *
 * @author youyongkun
 * @date 2021/12/7 11:21
 */
public class HookConcreteClass extends HookAbstractClass {
    @Override
    public void abstractMethod1() {
        System.out.println("抽象方法1的实现被调用...");
    }

    @Override
    public void abstractMethod2() {
        System.out.println("抽象方法2的实现被调用...");
    }

    @Override
    public void HookMethod1() {
        System.out.println("钩子方法1被重写...");
    }

    @Override
    public boolean HookMethod2() {
        return false;
    }
}